﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Categorias.aspx.cs" Inherits="Recetas_Web.Categorias" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style4
        {
            font-family: "AR DARLING";
        }
        .style5
        {
            font-family: Arial;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 style="text-align: center; font-size: 26pt; font-family: Arial;">
        CATEGORÍAS</h1>
    <div style="float: 163px; width: 272px; margin-left: 120px;">
        <asp:GridView ID="gvCategorias" runat="server" CellPadding="4" 
            ForeColor="#333333" GridLines="None" Width="246px">
            <AlternatingRowStyle BackColor="White" />
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <SortedAscendingCellStyle BackColor="#FDF5AC" />
            <SortedAscendingHeaderStyle BackColor="#4D0000" />
            <SortedDescendingCellStyle BackColor="#FCF6C0" />
            <SortedDescendingHeaderStyle BackColor="#820000" />
        </asp:GridView>
        &nbsp;&nbsp;&nbsp;
    </div>
    <br />
    <br />
    <br />
    <strong>
    <span class="style5">Ingresar categoria nueva:</span><span class="style4"> </span> </strong>&nbsp;
    <asp:TextBox ID="txtCategoria" runat="server" Height="23px" Width="165px"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnInsertarCategoria" runat="server" 
        onclick="btnInsertarCategoria_Click" Text="Agregar" />
    &nbsp;&nbsp;
    <asp:CustomValidator ID="CustomValidator1" runat="server" 
        ControlToValidate="txtCategoria" ErrorMessage="* Categoria Existente" 
        onservervalidate="CustomValidator1_ServerValidate" 
        style="font-weight: 700; font-size: small; font-family: Arial; color: #FF0000"></asp:CustomValidator>
    <br />
    <br />
</asp:Content>
